package com.gomyb.admin.module.product.model;

import com.gomyb.common.base.BaseModel;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * @author <a href="mailto:hellohesir@gmail.com">Mr_He</a>
 * @Copyright (c)</ b> HeC<br/>
 * @createTime 2018/11/11 17:06
 * @Description:
 */
@Entity
@Table(name = "app_product_category")
@Getter
@Setter
@DynamicUpdate
@DynamicInsert
public class AppProductCategory extends BaseModel{

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "name")
    private String name;    //类别名称

    @Column(name = "remark")
    private String remark;   //说明

}
